package com.Java.train.business.service.daily;

import com.Java.train.common.response.CommonResp;
import com.Java.train.business.entity.DailyTrainSeat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.Java.train.common.response.PageResp;
import com.Java.train.business.entity.DTO.DailyTrainSeatDTO;
import com.Java.train.business.req.daily.DailyTrainSeatQueryReq;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
* @author luomoxingchen
* @since 2024-09-24
*/
public interface DailyTrainSeatService extends IService<DailyTrainSeat> {

    /**
    * DailyTrainSeat详情
    * @param
    * @return
    */
    PageResp<DailyTrainSeatDTO> queryList(DailyTrainSeatQueryReq dailyTrainSeatQueryReq);

    /**
    * DailyTrainSeat保存和修改
    * @param dailyTrainSeat 根据需要进行传值
    * @return
    */
    CommonResp<Object> modify(DailyTrainSeat dailyTrainSeat);

    /**
    * DailyTrainSeat删除
    * @param ids
    * @return
    */
    CommonResp<Object> remove(String ids);

    void getDaily(Date date, String code);

    int countTypeSeat (Date date, String trainCode, String type);

    List<DailyTrainSeat> selectByCarriageIdx(Date date, String trainCode, Integer trainCarriageIdx);
}


